<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 找出数组中的第 K 大整数 -->
    <script>
      var kthLargestNumber = function (nums, k) {
        return nums.sort((a, b) => b.length - a.length || (b > a ? 1 : -1))[k - 1]
      }
      console.log(kthLargestNumber(['3', '6', '7', '10'], 4))
    </script>
  </body>
</html>
